import { convertEnumToOptions } from "@/utils/queryConversion";
import {
  EnumKnowledgeExtendType,
  EnumKnowledgeTemplateModule,
} from "@/api/index";

export const pageColumns = [
  {
    title: "ID",
    dataIndex: "id",
    key: "id",
    width: 60,
    // sorter: true,
  },
  {
    title: "模板名称",
    dataIndex: "name",
    key: "name",
    width: 300,
  },
  {
    title: "适用职位",
    dataIndex: "jobTypeIds",
    key: "jobTypeIds",
    width: 500,
  },
  {
    title: "权重",
    dataIndex: "weight",
    key: "weight",
    width: 80,
  },
  {
    title: "操作",
    key: "action",
    dataIndex: "action",
    width: 200,
  },
];

export const templateModuleOption = convertEnumToOptions(
  EnumKnowledgeTemplateModule
);
export const sceneExtendType = convertEnumToOptions(EnumKnowledgeExtendType);
